package com.leigang.statistics;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author leig-a
 * @version 1.0
 * @desc 统计服务启动类
 * @date 2023/2/15 11:19
 */
@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
public class StatisticsApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(StatisticsApplication.class);
    }
}
